home *** CD-ROM | disk | FTP | other *** search
/ Chip: Special Tips & Tricks for Windows 95 / Chip Wintips.iso / sterown / grafika / vs95120i / stbpg32.mo_ / stbpg32.mo
INI File  |  1996-09-11  |  12KB  |  477 lines

  1. [STBModes]
  2. Version=1.20
  3. Product=POWERGRAPH32
  4. Bus=PCI
  5. Modes=35
  6.  
  7. [Modes]
  8. ;         HRes, VRes, Bpp, HScan, VScan, Mem, Pitch, Flags, Cntr1, Cntr2, Work
  9. Mode.1  =  640,  480,   4,  31.5,  60.0,  1M,   320,     0, 0303h, 0A0Ah, 640_4_60
  10. Mode.2  =  640,  480,   4,  37.9,  72.0,  1M,   320,     0, 0504h, 0A08h, 640_4_72
  11. Mode.3  =  640,  480,   4,  37.5,  75.0,  1M,   320,     0, 0703h, 0501h, 640_4_75
  12. Mode.4  =  640,  480,   8,  31.5,  60.0,  1M,   640,     0, 0203h, 0A09h, 640_8_60
  13. Mode.5  =  640,  480,   8,  37.9,  72.0,  1M,   640,     0, 0504h, 0A08h, 640_8_72
  14. Mode.6  =  640,  480,   8,  37.5,  75.0,  1M,   640,     0, 0703h, 0500h, 640_8_75
  15. Mode.7  =  640,  480,  16,  31.5,  60.0,  1M,  1280,     0, 0606h, 0A09h, 640_16_60
  16. Mode.8  =  640,  480,  16,  37.9,  72.0,  1M,  1280,     0, 0A08h, 0A08h, 640_16_72
  17. Mode.9  =  640,  480,  16,  37.5,  75.0,  1M,  1280,     0, 0A06h, 0400h, 640_16_75
  18. Mode.10 =  640,  480,  24,  31.5,  60.0,  1M,  1920,     0, 0404h, 0A0Ah, 640_24_60
  19. Mode.11 =  640,  480,  32,  31.5,  60.0,  2M,  2560,     0, 030Ah, 0A09h, 640_32_60
  20. Mode.12 =  800,  600,   4,  35.2,  56.0,  1M,  1024,     0, 0805h, 0901h, 800_4_56
  21. Mode.13 =  800,  600,   4,  37.9,  60.0,  1M,  1024,     0, 0507h, 0A01h, 800_4_60
  22. Mode.14 =  800,  600,   4,  48.0,  72.0,  1M,  1024,     0, 0209h, 0A0Ah, 800_4_72
  23. Mode.15 =  800,  600,   4,  46.9,  75.0,  1M,  1024,     0, 0A04h, 0501h, 800_4_75
  24. Mode.16 =  800,  600,   8,  35.2,  56.0,  1M,   800,     0, 0A04h, 0900h, 800_8_56
  25. Mode.17 =  800,  600,   8,  37.9,  60.0,  1M,   800,     0, 0506h, 0A00h, 800_8_60
  26. Mode.18 =  800,  600,   8,  48.0,  72.0,  1M,   800,     0, 0208h, 0A0Ah, 800_8_72
  27. Mode.19 =  800,  600,   8,  46.9,  75.0,  1M,   800,     0, 0A03h, 0600h, 800_8_75
  28. Mode.20 =  800,  600,  16,  37.9,  60.0,  1M,  1600,     0, 0A0Ah, 0A00h, 800_16_60
  29. Mode.21 =  800,  600,  16,  48.0,  72.0,  1M,  1600,     0, 040Ah, 0A0Ah, 800_16_72
  30. Mode.22 =  800,  600,  16,  46.9,  75.0,  1M,  1600,     0, 0A06h, 0600h, 800_16_75
  31. Mode.23 = 1024,  768,   4,  35.5,  88.0,  1M,  1024,     2, 0203h, 0901h, 1024_4_88i
  32. Mode.24 = 1024,  768,   4,  48.4,  60.0,  1M,  1024,     0, 0A05h, 0A03h, 1024_4_60
  33. Mode.25 = 1024,  768,   4,  56.5,  70.0,  1M,  1024,     0, 0905h, 0A03h, 1024_4_70
  34. Mode.26 = 1024,  768,   4,  60.0,  75.0,  1M,  1024,     0, 0904h, 0801h, 1024_4_75
  35. Mode.27 = 1024,  768,   8,  35.5,  88.0,  1M,  1024,     2, 0202h, 0900h, 1024_8_88i
  36. Mode.28 = 1024,  768,   8,  48.4,  60.0,  1M,  1024,     0, 0A04h, 0A02h, 1024_8_60
  37. Mode.29 = 1024,  768,   8,  56.5,  70.0,  1M,  1024,     0, 0904h, 0A02h, 1024_8_70
  38. Mode.30 = 1024,  768,   8,  60.0,  75.0,  1M,  1024,     0, 0903h, 0000h, 1024_8_75
  39. Mode.31 = 1024,  768,  16,  35.5,  88.0,  2M,  2048,     2, 0503h, 0900h, 1024_16_88i
  40. Mode.32 = 1280, 1024,   4,  48.0,  88.0,  1M,  1024,     2, 0504h, 0602h, 1280_4_88i
  41. Mode.33 = 1280, 1024,   4,  64.0,  60.0,  1M,  1024,     0, 0A05h, 0404h, 1280_4_60
  42. Mode.34 = 1280, 1024,   8,  48.0,  88.0,  2M,  1280,     2, 0504h, 0502h, 1280_8_88i
  43. Mode.35 = 1280, 1024,   8,  64.0,  60.0,  2M,  1280,     0, 0A05h, 0403h, 1280_8_60
  44.  
  45. [640_4_60]
  46. Exec.1=Call,SaveMonType
  47. Exec.2=Call,SetMon640_60
  48. Exec.3=Call,SetMode_101h
  49. Exec.4=Call,RestoreMonType
  50. Exec.5=Call,Set4Bpp
  51. Exec.6=Call,PerformFixups4
  52.  
  53. [640_4_72]
  54. Exec.1=Call,SaveMonType
  55. Exec.2=Call,SetMon640_72
  56. Exec.3=Call,SetMode_101h
  57. Exec.4=Call,RestoreMonType
  58. Exec.5=Call,Set4Bpp
  59. Exec.6=Call,PerformFixups4
  60.  
  61. [640_4_75]
  62. Exec.1=Call,SaveMonType
  63. Exec.2=Call,SetMon640_75
  64. Exec.3=Call,SetMode_101h
  65. Exec.4=Call,RestoreMonType
  66. Exec.5=Call,Set4Bpp
  67. Exec.6=Call,PerformFixups4
  68.  
  69. [640_8_60]
  70. Exec.1=Call,SaveMonType
  71. Exec.2=Call,SetMon640_60
  72. Exec.3=Call,SetMode_101h
  73. Exec.4=Call,RestoreMonType
  74. Exec.5=Call,PerformFixups
  75.  
  76. [640_8_72]
  77. Exec.1=Call,SaveMonType
  78. Exec.2=Call,SetMon640_72
  79. Exec.3=Call,SetMode_101h
  80. Exec.4=Call,RestoreMonType
  81. Exec.5=Call,PerformFixups
  82.  
  83. [640_8_75]
  84. Exec.1=Call,SaveMonType
  85. Exec.2=Call,SetMon640_75
  86. Exec.3=Call,SetMode_101h
  87. Exec.4=Call,RestoreMonType
  88. Exec.5=Call,PerformFixups
  89.  
  90. [640_16_60]
  91. Exec.1=Call,SaveMonType
  92. Exec.2=Call,SetMon640_60
  93. Exec.3=Call,SetMode_111h
  94. Exec.4=Call,RestoreMonType
  95. Exec.5=Call,PerformFixups
  96.  
  97. [640_16_72]
  98. Exec.1=Call,SaveMonType
  99. Exec.2=Call,SetMon640_72
  100. Exec.3=Call,SetMode_111h
  101. Exec.4=Call,RestoreMonType
  102. Exec.5=Call,PerformFixups
  103.  
  104. [640_16_75]
  105. Exec.1=Call,SaveMonType
  106. Exec.2=Call,SetMon640_75
  107. Exec.3=Call,SetMode_111h
  108. Exec.4=Call,RestoreMonType
  109. Exec.5=Call,PerformFixups
  110.  
  111. [640_24_60]
  112. Exec.1=Call,SaveMonType
  113. Exec.2=Call,SetMon640_60
  114. Exec.3=Call,SetMode_212h
  115. Exec.4=Call,RestoreMonType
  116. Exec.5=Call,PerformFixups
  117.  
  118. [640_32_60]
  119. Exec.1=Call,SaveMonType
  120. Exec.2=Call,SetMon640_60
  121. Exec.3=Call,SetMode_112h
  122. Exec.4=Call,RestoreMonType
  123. Exec.5=Call,PerformFixups
  124.  
  125. [800_4_56]
  126. Exec.1=Call,SaveMonType
  127. Exec.2=Call,SetMon800_56
  128. Exec.3=Call,SetMode_202h
  129. Exec.4=Call,RestoreMonType
  130.  
  131. [800_4_60]
  132. Exec.1=Call,SaveMonType
  133. Exec.2=Call,SetMon800_60
  134. Exec.3=Call,SetMode_202h
  135. Exec.4=Call,RestoreMonType
  136.  
  137. [800_4_72]
  138. Exec.1=Call,SaveMonType
  139. Exec.2=Call,SetMon800_72
  140. Exec.3=Call,SetMode_202h
  141. Exec.4=Call,RestoreMonType
  142.  
  143. [800_4_75]
  144. Exec.1=Call,SaveMonType
  145. Exec.2=Call,SetMon800_75
  146. Exec.3=Call,SetMode_202h
  147. Exec.4=Call,RestoreMonType
  148.  
  149. [800_8_56]
  150. Exec.1=Call,SaveMonType
  151. Exec.2=Call,SetMon800_56
  152. Exec.3=Call,SetMode_103h
  153. Exec.4=Call,RestoreMonType
  154. Exec.5=Call,PerformFixups
  155.  
  156. [800_8_60]
  157. Exec.1=Call,SaveMonType
  158. Exec.2=Call,SetMon800_60
  159. Exec.3=Call,SetMode_103h
  160. Exec.4=Call,RestoreMonType
  161. Exec.5=Call,PerformFixups
  162.  
  163. [800_8_72]
  164. Exec.1=Call,SaveMonType
  165. Exec.2=Call,SetMon800_72
  166. Exec.3=Call,SetMode_103h
  167. Exec.4=Call,RestoreMonType
  168. Exec.5=Call,PerformFixups
  169.  
  170. [800_8_75]
  171. Exec.1=Call,SaveMonType
  172. Exec.2=Call,SetMon800_75
  173. Exec.3=Call,SetMode_103h
  174. Exec.4=Call,RestoreMonType
  175. Exec.5=Call,PerformFixups
  176.  
  177. [800_16_60]
  178. Exec.1=Call,SaveMonType
  179. Exec.2=Call,SetMon800_60
  180. Exec.3=Call,SetMode_114h
  181. Exec.4=Call,RestoreMonType
  182. Exec.5=Call,PerformFixups
  183.  
  184. [800_16_72]
  185. Exec.1=Call,SaveMonType
  186. Exec.2=Call,SetMon800_72
  187. Exec.3=Call,SetMode_114h
  188. Exec.4=Call,RestoreMonType
  189. Exec.5=Call,PerformFixups
  190.  
  191. [800_16_75]
  192. Exec.1=Call,SaveMonType
  193. Exec.2=Call,SetMon800_75
  194. Exec.3=Call,SetMode_114h
  195. Exec.4=Call,RestoreMonType
  196. Exec.5=Call,PerformFixups
  197.  
  198. [1024_4_88i]
  199. Exec.1=Call,SaveMonType
  200. Exec.2=Call,SetMon1024_88i
  201. Exec.3=Call,SetMode_204h
  202. Exec.4=Call,RestoreMonType
  203.  
  204. [1024_4_60]
  205. Exec.1=Call,SaveMonType
  206. Exec.2=Call,SetMon1024_60
  207. Exec.3=Call,SetMode_204h
  208. Exec.4=Call,RestoreMonType
  209.  
  210. [1024_4_70]
  211. Exec.1=Call,SaveMonType
  212. Exec.2=Call,SetMon1024_70
  213. Exec.3=Call,SetMode_204h
  214. Exec.4=Call,RestoreMonType
  215.  
  216. [1024_4_75]
  217. Exec.1=Call,SaveMonType
  218. Exec.2=Call,SetMon1024_75
  219. Exec.3=Call,SetMode_204h
  220. Exec.4=Call,RestoreMonType
  221.  
  222. [1024_8_88i]
  223. Exec.1=Call,SaveMonType
  224. Exec.2=Call,SetMon1024_88i
  225. Exec.3=Call,SetMode_205h
  226. Exec.4=Call,RestoreMonType
  227. Exec.5=Call,PerformFixups
  228.  
  229. [1024_8_60]
  230. Exec.1=Call,SaveMonType
  231. Exec.2=Call,SetMon1024_60
  232. Exec.3=Call,SetMode_205h
  233. Exec.4=Call,RestoreMonType
  234. Exec.5=Call,PerformFixups
  235.  
  236. [1024_8_70]
  237. Exec.1=Call,SaveMonType
  238. Exec.2=Call,SetMon1024_70
  239. Exec.3=Call,SetMode_205h
  240. Exec.4=Call,RestoreMonType
  241. Exec.5=Call,PerformFixups
  242.  
  243. [1024_8_75]
  244. Exec.1=Call,SaveMonType
  245. Exec.2=Call,SetMon1024_75
  246. Exec.3=Call,SetMode_205h
  247. Exec.4=Call,RestoreMonType
  248. Exec.5=Call,PerformFixups
  249.  
  250. [1024_16_88i]
  251. Exec.1=Call,SaveMonType
  252. Exec.2=Call,SetMon1024_88i
  253. Exec.3=Call,SetMode_117h
  254. Exec.4=Call,RestoreMonType
  255. Exec.5=Call,PerformFixups
  256.  
  257. [1280_4_88i]
  258. Exec.1=Call,SaveMonType
  259. Exec.2=Call,SetMon1280_88i
  260. Exec.3=Call,SetMode_107h
  261. Exec.4=Call,Set4Bpp
  262. Exec.5=Call,RestoreMonType
  263. Exec.6=Call,PerformFixups4
  264.  
  265. [1280_4_60]
  266. Exec.1=Call,SaveMonType
  267. Exec.2=Call,SetMon1280_60
  268. Exec.3=Call,SetMode_107h
  269. Exec.4=Call,Set4Bpp
  270. Exec.5=Call,RestoreMonType
  271. Exec.6=Call,PerformFixups4
  272.  
  273. [1280_8_88i]
  274. Exec.1=Call,SaveMonType
  275. Exec.2=Call,SetMon1280_88i
  276. Exec.3=Call,SetMode_107h
  277. Exec.4=Call,RestoreMonType
  278. Exec.5=Call,PerformFixups
  279.  
  280. [1280_8_60]
  281. Exec.1=Call,SaveMonType
  282. Exec.2=Call,SetMon1280_60
  283. Exec.3=Call,SetMode_107h
  284. Exec.4=Call,RestoreMonType
  285. Exec.5=Call,PerformFixups
  286.  
  287. [SaveMonType]
  288. Exec.1=Call,UnlockS3
  289. Exec.2=Code,BAh,D4h,03h,B0h,52h,EEh,42h,ECh,8Ah,D8h,BAh,D4h,03h,B0h,41h,EEh
  290. Exec.3=Code,42h,ECh,8Ah,F8h,53h
  291.  
  292. [RestoreMonType]
  293. Exec.1=Call,UnlockS3
  294. Exec.2=Code,5Bh,BAh,D4h,03h,B0h,52h,EEh,42h,8Ah,C3h,EEh,BAh,D4h,03h,B0h,41h
  295. Exec.3=Code,EEh,42h,8Ah,C7h,EEh
  296.  
  297. [SetMon640_60]
  298. Exec.1=RMW8I,3D4h,52h,00h,70h
  299.  
  300. [SetMon640_72]
  301. Exec.1=RMW8I,3D4h,52h,10h,70h
  302.  
  303. [SetMon640_75]
  304. Exec.1=RMW8I,3D4h,52h,20h,70h
  305.  
  306. [SetMon800_56]
  307. Exec.1=RMW8I,3D4h,41h,00h,03h
  308. Exec.2=RMW8I,3D4h,52h,00h,80h
  309.  
  310. [SetMon800_60]
  311. Exec.1=RMW8I,3D4h,41h,00h,03h
  312. Exec.2=RMW8I,3D4h,52h,80h,80h
  313.  
  314. [SetMon800_72]
  315. Exec.1=RMW8I,3D4h,41h,01h,03h
  316. Exec.2=RMW8I,3D4h,52h,00h,80h
  317.  
  318. [SetMon800_75]
  319. Exec.1=RMW8I,3D4h,41h,01h,03h
  320. Exec.2=RMW8I,3D4h,52h,80h,80h
  321.  
  322. [SetMon1024_88i]
  323. Exec.1=RMW8I,3D4h,41h,00h,1Ch
  324.  
  325. [SetMon1024_60]
  326. Exec.1=RMW8I,3D4h,41h,08h,1Ch
  327.  
  328. [SetMon1024_70]
  329. Exec.1=RMW8I,3D4h,41h,0Ch,1Ch
  330.  
  331. [SetMon1024_75]
  332. Exec.1=RMW8I,3D4h,41h,10h,1Ch
  333.  
  334. [SetMon1280_88i]
  335. Exec.1=RMW8I,3D4h,41h,00h,E0h
  336.  
  337. [SetMon1280_60]
  338. Exec.1=RMW8I,3D4h,41h,80h,E0h
  339.  
  340. [SetMode_101h]
  341. ; 640_8
  342. Exec.1=Int,10h,4F02h,8101h
  343.  
  344. [SetMode_103h]
  345. ; 800_8
  346. Exec.1=Int,10h,4F02h,8103h
  347.  
  348. [SetMode_107h]
  349. ; 1280_8
  350. Exec.1=Int,10h,4F02h,8107h
  351.  
  352. [SetMode_110h]
  353. ; 640_15
  354. Exec.1=Int,10h,4F02h,8110h
  355.  
  356. [SetMode_111h]
  357. ; 640_16
  358. Exec.1=Int,10h,4F02h,8111h
  359.  
  360. [SetMode_112h]
  361. ; 640_32
  362. Exec.1=Int,10h,4F02h,8112h
  363.  
  364. [SetMode_113h]
  365. ; 800_15
  366. Exec.1=Int,10h,4F02h,8113h
  367.  
  368. [SetMode_114h]
  369. ; 800_16
  370. Exec.1=Int,10h,4F02h,8114h
  371.  
  372. [SetMode_116h]
  373. ; 1024_15
  374. Exec.1=Int,10h,4F02h,8116h
  375.  
  376. [SetMode_117h]
  377. ; 1024_16
  378. Exec.1=Int,10h,4F02h,8117h
  379.  
  380. [SetMode_202h]
  381. ; 800_4
  382. Exec.1=Int,10h,4F02h,8202h
  383.  
  384. [SetMode_204h]
  385. ; 1024_4
  386. Exec.1=Int,10h,4F02h,8204h
  387.  
  388. [SetMode_205h]
  389. ; 1024_8
  390. Exec.1=Int,10h,4F02h,8205h
  391.  
  392. [SetMode_208h]
  393. ; 1280_4
  394. Exec.1=Int,10h,4F02h,8208h
  395.  
  396. [SetMode_212h]
  397. ; 640_24
  398. Exec.1=Int,10h,4F02h,8212h
  399.  
  400. [PerformFixups]
  401. ; Enable enh mode.
  402. ; Disable 4 bpp enh mode, linear addr, and mmio.
  403. Exec.1=RMW16,4AE8h,0001h,0035h
  404.  
  405. [UnlockS3]
  406. Exec.1=RMW8I,3D4h,38h,48h,48h
  407. Exec.2=RMW8I,3D4h,39h,A0h,A0h
  408.  
  409. [EnableExtRegs]
  410. ;       Enable S3 enhanced mode registers (4ae8h, etc.)
  411. ;       (Set bit 1 in CR 40)
  412. Exec.1=RMW8I,3D4h,40h,01h,01h
  413.  
  414. [ResetAttrToggle]
  415. ; reset attribute controller index/data flip-flop by reading 3dah
  416. ;
  417. ; push  dx
  418. ; push  ax
  419. ; mov   dx, 3da
  420. ; in    al, dx
  421. ; pop   ax
  422. ; pop   dx
  423. ;
  424. Exec.1=Code,52h,50h,BAh,DAh,03h,ECh,58h,5Ah
  425.  
  426. [Set4Bpp]
  427. ; Change drawing engine from 8bpp mode to 4bpp mode
  428. ; The 4 bit modes must have a pitch of 1024
  429. ;
  430. ;       Unlock S3 registers
  431. Exec.1=Call,UnlockS3
  432. ;
  433. ;       Enable Extended S3 registers
  434. Exec.2=Call,EnableExtRegs
  435. ;
  436. ;       Set CR 3A (Misc. reg. 1) to 4 bpp enhanced mode rather than
  437. ;       256 color enh. mode
  438. Exec.3=RMW8I,3D4h,3Ah,00h,10h
  439. ;
  440. ;       Set CR 31h to two page screen mode
  441. ;       forces pitch to 1024 bytes (required to make 4 bit modes work)
  442. Exec.4=RMW8I,3D4h,31h,02h,02h
  443. ;
  444. ;       Reset Attribute index/data flip-flop
  445. Exec.5=Call,ResetAttrToggle
  446. ;
  447. ;       Select Attribute register 10h, and disable 256 color mode
  448. ;
  449. ;       push  dx
  450. ;       push  ax
  451. ;       mov   dx, 3c0h
  452. ;       mov   al, 10h
  453. ;       out   dx, al          select attr. register 10, turn off palette
  454. ;       inc   dx
  455. ;       in    al, dx          read reg. 10
  456. ;       dec   dx
  457. ;       and   al, bfh
  458. ;       out   dx, al          disable 256 color mode
  459. ;       pop   ax
  460. ;       pop   dx
  461. Exec.6=Code,52h,50h,BAh,C0h,03h,B0h,10h,EEh,42h,ECh,4Ah,24h,BFh,EEh,58h,5Ah
  462. ;
  463. ;       Reset Attribute index/data flip-flop
  464. Exec.7=Call,ResetAttrToggle
  465. ;
  466. ;       Re-enable the palette
  467. Exec.8=Out8,3C0h,20h
  468. ;
  469. ;       set video shift registers into 4 bit graphics mode
  470. Exec.9=RMW8I,3CEh,05h,00h,60h
  471.  
  472.  
  473. [PerformFixups4]
  474. ; Enable 4 bpp enh mode and enh mode.
  475. ; Disable linear addr and mmio.
  476. Exec.1=RMW16,4AE8h,0005h,0035h
  477.